package com.reebake.ideal.captcha.client;

import com.reebake.ideal.captcha.entity.CaptchaRequestEntity;
import com.reebake.ideal.captcha.entity.CaptchaResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * captcha验证码服务客户端
 */
public interface CaptchaClient {

    /**
     * 二次验证
     * @param data 验证数据
     * @return 验证结果
     */
    @PostMapping("verify")
    CaptchaResponseEntity verify(@RequestBody CaptchaRequestEntity data);

}
